#ifndef X24_H
#define X24_H

#include "common.h"

template <AllegroVersion version>
struct x24
{
    uint32_t t;
    uint32_t k;
    uint32_t un[11];
#if __cplusplus >= 202002L
    COND_FIELD(version >= A_172, uint32_t, un1);
#endif
    uint32_t TAIL;
    operator x24<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_172};
};

#if __cplusplus < 202002L
template <> struct x24<A_172>
{
    uint32_t t;
    uint32_t k;
    uint32_t un[11];
    uint32_t un1;

    uint32_t TAIL;
    operator x24<A_174>() const;
    static constexpr AllegroVersion versions[1] = {A_172};
};
#endif

#endif // X24_H
